<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/9/15
  Time: 14:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<html>
<head>
    <title>Title</title>
</head>
<body>
<div class="pages page1">
    <div class="layui-fluid shouye">
        <div class="layui-container">
            <div class="layui-row">
                <div class="layui-col-md4">
                    <a href="${ctx}/index.jsp" ><img src="${ctx}/images/logo.png" class="logo"></a>
                </div>
                <div class="layui-col-md8">
                    <ul class="layui-nav pull-right">
                        <c:forEach items="${category}" var="menu">
                            <li class="layui-nav-item">
                                <c:if test="${menu.parentId==1}">
                                    <a href="${pageContext.request.contextPath}/web/list/${menu.module}">${menu.name}</a>



                                    <dl class="layui-nav-child">
                                        <c:forEach items="${category}" var="menu1">
                                            <c:if test="${menu1.parentId==menu.id}">
                                                <dd><a href="${pageContext.request.contextPath}/web/list/${menu1.module}">${menu1.name}</a></dd>
                                                <c:if test="${menu1.module==module}">
                                                    <c:set var="parentID" value="${menu1.parentId}"/>
                                                </c:if>
                                            </c:if>
                                        </c:forEach>
                                    </dl>


                                </c:if>
                            </li>
                        </c:forEach>
                    </ul>
                    <div class="layui-clear"></div>
                </div>
            </div>
        </div>

    </div>
</div>
</body>
</html>
